package com.example.backend.controller;

import com.example.backend.common.Result;
import com.example.backend.services.BorrowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BorrowController {
    @Autowired
    BorrowService  borrowService;
    @GetMapping("/getBorrowList")
    public Result getBorrowList()
    {
        return borrowService.getBorrowList();
    }
}
